package com.nuc.bigdata.orm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuc.bigdata.orm.entity.NewsComments;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * 新闻评论Mapper
 * @author JackLuo
 * @date 2019/11/19
 */
public interface NewsCommentsMapper extends BaseMapper<NewsComments> {
    /**
     * 通过新闻唯一标识获取新闻评论
     * @param newsId 新闻唯一标识
     * @param offset limit偏移起始位置
     * @param length 截取长度
     * @return 新闻评论的ArrayList
     */
    ArrayList<NewsComments> listByNewsId(@Param("newsId")String newsId,
                                         @Param("offset")Long offset,
                                         @Param("length")Long length);
}
